package com.by.service.imp;

import com.by.mapper.StockMapper;
import com.by.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StockServiceImpl implements StockService {

    @Autowired
    StockMapper stockMapper;

    @Override
    public int updateStock(int goodsId, int num) {
        return stockMapper.updateStock(goodsId,num);
    }
}
